<html xmlns:th="http://www.thymeleaf.org">
<head>
    <div th:insert="~{ /common/common_header:: meta('远程视图配置')}"></div>
    <!--基本-->
    <div th:insert="~{ /common/common_header:: base}"></div>
    <!--表格-->
    <div th:insert="~{ /common/common_header:: table}"></div>
    <!--行内编辑-->
    <div th:insert="~{ /common/common_header:: editable}"></div>
    <!--下拉框编辑-->
    <div th:insert="~{ /common/common_header:: select}"></div>
</head>
<body>
<!--模态框loading-->
<div th:insert="~{ /common/common_loading:: loading}"></div>
<!--模态框loading-->
<!--顶部导航条(用户信息)-->
<div th:insert="~{ /common/common_bar:: navbar}"></div>
<!--顶部导航条(用户信息)-->
<!--主体-->
<div class="container-fluid ">
    <div class="row">
        <!--左侧导航栏-->
        <div th:insert="~{ /common/common_menu:: menus}"></div>
        <!--左侧导航栏-->

        <!--右侧主题部分 configEdit start-->
        <div class="col-xs-12 col-sm-9 col-lg-10" id="configEdit" style="display: inline-block">
            <!--通用的tab-->
            <div th:insert="~{ /common/common_tab::tab('远程视图')}"></div>
            <!--通用的tab-->

            <!--工具栏-->
            <div th:insert="~{ /common/common_bar:: toolbar('服务器选择')}"></div>
            <!--工具栏-->

            <!--modal-->
            <!-- 模态框（Modal） -->
            <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                            <h4 class="modal-title" id="myModalLabel">选择扫描的服务器和路径</h4>
                        </div>
                        <div class="modal-body">

                            <form id="scan_form" class="form-horizontal" method="post">
                                <div class="form-group required">
                                    <label for="" class="col-sm-2 control-label required">服务器</label>
                                    <div class="col-sm-9">
                                        <select class="js-example-basic-single form-control val" name="scan_server">
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group required">
                                    <label for="" class="col-sm-2 control-label">路径</label>
                                    <div class="col-sm-9">
                                        <input type="text" name="scan_path" class="form-control val" placeholder="/opt/app"
                                               value="/opt/app">
                                    </div>
                                </div>

                                <!--2020年09月10日14:37:30 zjf-->
                                <div class="form-group required">
                                    <label for="" class="col-sm-2 control-label">服务凭证</label>
                                    <div class="col-sm-9">
                                        <input type="text" name="scan_proof" class="form-control val" placeholder="META-INF"
                                               value="META-INF">
                                    </div>
                                </div>

                            </form>

                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                            <button type="button" class="btn btn-primary" onclick="modalConfirm()">确认</button>
                        </div>
                    </div><!-- /.modal-content -->
                </div><!-- /.modal -->
            </div>
            <!--modal-->

            <!--列表-->
            <div th:insert="~{ /common/common_body:: list}"></div>
            <!--列表-->

            <!--用做信息的添加或者删除-->
            <form id="add" class="form-horizontal" method="post" style="display: none">
                <div class="panel panel-default" style="position: relative">
                    <div class="panel-heading" >
                        <h3 class="panel-title" style="display: inline-block" id="typeTitle">远程服务添加</h3>
                        <div style="position: absolute;right: 0.5%;top: 0.25%">
                            <button class="btn btn-primary" type="button" style="" onclick="confirmVal()">确定</button>
                            <button class="btn btn-danger" type="button" style="" onclick="clearVal()">清空</button>
                        </div>
                    </div>
                    <div class="panel-body">
                        <div class="form-group required">
                            <label for="" class="col-sm-2 control-label required">父路径</label>
                            <div class="col-sm-9">
                                <input type="text" name="parent" class="form-control val" placeholder="/opt/app">
                            </div>
                        </div>
                        <div class="form-group required">
                            <label for="" class="col-sm-2 control-label required">名称</label>
                            <div class="col-sm-9">
                                <input type="text" name="name" class="form-control val" placeholder="webwork">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="" class="col-sm-2 control-label">lib目录</label>
                            <div class="col-sm-9">
                                <input type="text" name="lib" class="form-control val" placeholder="/lib" value="/lib">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="" class="col-sm-2 control-label">resource目录</label>
                            <div class="col-sm-9">
                                <input type="text" name="resource" class="form-control val" placeholder="/resource" value="/resource">
                            </div>
                        </div>
                        <div class="form-group required">
                            <label for="" class="col-sm-2 control-label required">启动/重启命令路径</label>
                            <div class="col-sm-9">
                                <input type="text" name="bin_start" class="form-control val" placeholder="/bin/restart.sh" value="/bin/restart.sh">
                            </div>
                        </div>
                        <div class="form-group required">
                            <label for="" class="col-sm-2 control-label required">停止命令路径</label>
                            <div class="col-sm-9">
                                <input type="text" name="bin_stop" class="form-control val" placeholder="/bin/stop.sh" value="/bin/stop.sh">
                            </div>
                        </div>
                        <div class="form-group required">
                            <label for="" class="col-sm-2 control-label">启动优先级</label>
                            <div class="col-sm-9">
                                <input type="text" name="order" class="form-control val" placeholder="启动优先级0最高 99最低" value="10">
                            </div>
                        </div>
                        <div class="form-group required">
                            <label for="" class="col-sm-2 control-label required">关联服务器信息</label>
                            <div class="col-sm-9">
                                <select class="js-example-basic-single form-control val" name="server_id">
                                </select>
                            </div>
                        </div>

                        <!--0:不忽视,1:忽视-->
                        <div class="form-group required">
                            <label for="" class="col-sm-2 control-label">忽视</label>
                            <div class="col-sm-9">
                                <label class="checkbox-inline">
                                    <input type="radio" class="val no" name="ignore" value="1" checked> 否
                                </label>
                                <label class="checkbox-inline">
                                    <input type="radio" class="val yes" name="ignore" value="0"> 是
                                </label>
                            </div>
                        </div>

                        <div class="form-group required">
                            <label for="" class="col-sm-2 control-label required">描述</label>
                            <div class="col-sm-9">
                                <textarea class="form-control val" name="desc" placeholder="远程视图描述"
                                          type="text"></textarea>
                            </div>
                        </div>
                    </div>
                </div>

            </form>

<!--用做信息的添加或者删除-->
        </div>
        <!--右侧主题部分 configEdit end-->

    </div>
</div>
</div>
<!--都要依赖的基础js-->
<div th:insert="~{ /common/common_foot:: base}"></div>
<!--表格相关-->
<div th:insert="~{ /common/common_foot:: table}"></div>
<!--提示框 alert confirm-->
<div th:insert="~{ /common/common_foot:: bootbox}"></div>
<!--导出表格-->
<div th:insert="~{ /common/common_foot:: export}"></div>
<!--行内编辑,放在表格初始化之后-->
<div th:insert="~{ /common/common_foot:: editable}"></div>
<!--下拉框编辑-->
<!--<div th:insert="~{ /common/common_foot:: select}"></div>-->

<script th:src="@{/assets/js/remote/service/service.js}" type="text/javascript"></script>
<script th:src="@{/assets/js/remote/service/ajax.js}" type="text/javascript"></script>
</body>
</html>
